cmake_minimum_required(VERSION 3.20)

set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")

project(reids_demo)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/.)

find_package(redis++ CONFIG REQUIRED)

if(redis++_FOUND)
    message(STATUS FOUND)
    message(STATUS ${redis++_DIR})
endif()

include_directories(${redis++_DIR})

add_executable(a2 main02.cpp)

add_executable(a3 main03.cpp)

target_link_libraries(a2 PUBLIC redis++::redis++)

target_link_libraries(a3 PUBLIC redis++::redis++)